package com.sunwayworld.basemodule.common.asynctask.dao.impl;

import com.sunwayworld.basemodule.common.asynctask.bean.LimsAsynctaskBean;
import com.sunwayworld.basemodule.common.asynctask.dao.LimsAsynctaskDao;
import com.sunwayworld.basemodule.common.asynctask.mapper.LimsAsynctaskMapper;
import com.sunwayworld.basemodule.common.asynctask.statics.TaskStaticsInfo;
import com.sunwayworld.framework.mybatis.dao.MybatisDaoSupport;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@GikamBean
public class LimsAsynctaskDaoImpl extends MybatisDaoSupport<LimsAsynctaskBean, Long> implements LimsAsynctaskDao {

    @Autowired
    private LimsAsynctaskMapper limsAsynctaskMapper;

    @Override
    public LimsAsynctaskMapper getMapper() {
        return limsAsynctaskMapper;
    }

    @Override
    public TaskStaticsInfo queryTaskStaticsInfo() {
        return getMapper().queryTaskStaticsInfo();
    }

    @Override
    public List<Map<String, Object>> queryTaskTypeStatusStatics() {
        return getMapper().queryTaskTypeStatusStatics();
    }
}
